<template>
  <form-designer-component ref="formDesigner"></form-designer-component>
</template>
<script lang="ts">
import {Options, Vue} from 'vue-class-component';

import FormDesignerComponent from "@/components/FormDesignerComponent.vue";

@Options({
  components: {FormDesignerComponent}
})
export default class TemplateCreateView extends Vue {
  mounted() {
    console.log(this.$route.params.formId);
    console.log(this.$refs.formDesigner);
  }

  saveFormJson() {
    console.log((this.$refs.formDesigner as any).getFormJson());
  }
}
</script>
<style scoped lang="scss">

</style>